package jp.co.technotree.apl.cmd.action;
import jp.co.technotree.common.ctrl.ErrorMap;
import jp.co.technotree.common.ctrl.FormBean;
import jp.co.technotree.common.ctrl.command.ActionCommand;
import jp.co.technotree.common.ctrl.context.RequestContext;
import jp.co.technotree.common.ctrl.context.ResponseContext;
import jp.co.technotree.common.ctrl.forward.ForwardMessage;
import jp.co.technotree.common.ctrl.forward.ForwardMessageManager;
import jp.co.technotree.common.exception.CommandExecuteException;
import jp.co.technotree.common.exception.ValidateException;
import jp.co.technotree.common.util.DBGLog;


public class Act1100View extends ActionCommand{
	private static String CLASSNAME=Act1100View.class.getSimpleName();

	@Override
	public ForwardMessage doExecute(RequestContext requestContext,
			ResponseContext responseContext, FormBean formBean,
			ForwardMessageManager forwardManager)
			throws CommandExecuteException {
		String METHODNAME = "doExecute";
		DBGLog.log(CLASSNAME,METHODNAME,"START");

		Act1000Bean inBean = (Act1000Bean)formBean;
		Act1000Bean outBean = inBean;
		if ( outBean == null ) outBean = new Act1000Bean();
		
		ForwardMessage forward = forwardManager.getJspForwardMessage("lin1000", outBean);

		DBGLog.log(CLASSNAME,METHODNAME,"END");
		return forward;
	}


	@Override
	public ForwardMessage doValidate(RequestContext requestContext,
			ResponseContext responseContext, FormBean formBean,
			ErrorMap errorMap, ForwardMessageManager forwardManager)
			throws ValidateException {
		String METHODNAME = "doValidate";
		DBGLog.log(CLASSNAME,METHODNAME,"START");
		ForwardMessage forward = null;
		
		DBGLog.log(CLASSNAME,METHODNAME,"END");
		return forward;
	}

}
